package com.blrs.domain;

import java.util.Date;

import com.blrs.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.blrs.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 问卷调查作答对象 questionnaire_enroll
 * 
 * @author yang
 * @date 2023-12-01
 */
public class QuestionnaireEnroll extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问卷作答id */
    private String answerId;

    /** 问卷调查id */
    @Excel(name = "问卷调查id")
    private String questionnaireId;

    /** 作答人员id */
    @Excel(name = "作答人员id")
    private Long personnelId;

    /** 作答人员姓名 */
    @Excel(name = "作答人员姓名")
    private String personnelName;

    /** 作答人员职务 */
    @Excel(name = "作答人员职务")
    private String personnelDuties;

    /** 作答人员联系电话 */
    @Excel(name = "作答人员联系电话")
    private String personnelContact;

    /** 问卷得分 */
    @Excel(name = "问卷得分")
    private Long questionnaireScore;

    /** 答题内容 */
    @Excel(name = "答题内容")
    private String content;

    /** 作答时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "作答时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date answerTime;

    /** 用户企业id(用户组织机构id) */
    @Excel(name = "用户企业id(用户组织机构id)")
    private String answerEnterpriseId;

    /** 问卷调查名称 */
    @Excel(name = "问卷调查名称")
    private String questionnaireName;

    /**
     * 发送企业名称
     * @param answerId
     */
    private String deptName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setAnswerId(String answerId)
    {
        this.answerId = answerId;
    }

    public String getAnswerId() 
    {
        return answerId;
    }
    public void setQuestionnaireId(String questionnaireId) 
    {
        this.questionnaireId = questionnaireId;
    }

    public String getQuestionnaireId() 
    {
        return questionnaireId;
    }
    public void setPersonnelId(Long personnelId) 
    {
        this.personnelId = personnelId;
    }

    public Long getPersonnelId() 
    {
        return personnelId;
    }
    public void setPersonnelName(String personnelName) 
    {
        this.personnelName = personnelName;
    }

    public String getPersonnelName() 
    {
        return personnelName;
    }
    public void setPersonnelDuties(String personnelDuties) 
    {
        this.personnelDuties = personnelDuties;
    }

    public String getPersonnelDuties() 
    {
        return personnelDuties;
    }
    public void setPersonnelContact(String personnelContact) 
    {
        this.personnelContact = personnelContact;
    }

    public String getPersonnelContact() 
    {
        return personnelContact;
    }
    public void setQuestionnaireScore(Long questionnaireScore) 
    {
        this.questionnaireScore = questionnaireScore;
    }

    public Long getQuestionnaireScore() 
    {
        return questionnaireScore;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setAnswerTime(Date answerTime) 
    {
        this.answerTime = answerTime;
    }

    public Date getAnswerTime() 
    {
        return answerTime;
    }
    public void setAnswerEnterpriseId(String answerEnterpriseId) 
    {
        this.answerEnterpriseId = answerEnterpriseId;
    }

    public String getAnswerEnterpriseId() 
    {
        return answerEnterpriseId;
    }
    public void setQuestionnaireName(String questionnaireName) 
    {
        this.questionnaireName = questionnaireName;
    }

    public String getQuestionnaireName() 
    {
        return questionnaireName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("answerId", getAnswerId())
            .append("questionnaireId", getQuestionnaireId())
            .append("personnelId", getPersonnelId())
            .append("personnelName", getPersonnelName())
            .append("personnelDuties", getPersonnelDuties())
            .append("personnelContact", getPersonnelContact())
            .append("questionnaireScore", getQuestionnaireScore())
            .append("content", getContent())
            .append("answerTime", getAnswerTime())
            .append("answerEnterpriseId", getAnswerEnterpriseId())
            .append("questionnaireName", getQuestionnaireName())
            .toString();
    }
}
